{% extends 'template_base.html' %}

{% block title %}{{ title }}{% endblock title %}
{% block header %}{{ title }}{% endblock header %}

{% block content %}

{% load post_extras %}
{% if form.errors %}
<div class="form-error">
    <ul>
    {% for field in form %}
        {% if field.errors %}
            <li>{{ field.label }}: {{ field.errors|striptags }}</li>
        {% endif %}
    {% endfor %}
    </ul>
</div>
{% endif %}
<div id="respond">
<form action="/vs-admin/news/add/" method="post" name="add-ticket">{% csrf_token %}
{{form}}
<p id="ticket-create">
    <input type="submit" name="submit" id="submit" value="Добавить">
</p>
</form>
</div>

{% endblock content %}
